package com.fuyu.web.kaogong.controller;


import com.fuyu.common.model.R;
import com.fuyu.common.web.controller.BaseController;
import com.fuyu.model.entity.KgIdioms;
import com.fuyu.system.anno.IgnoreWebSecurity;
import com.fuyu.web.kaogong.service.KgIdiomsService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (KgIdioms)表控制层
 *
 * @author makejava
 * @since 2024-05-27 16:42:41
 */
@Tag(name = "成语", description = "")
@RestController
@RequestMapping("/wx/kgIdioms")
public class KgIdiomsWxController extends BaseController {
    /**
     * 服务对象
     */
    @Autowired
    private KgIdiomsService kgIdiomsService;


    @IgnoreWebSecurity
    @Operation(summary = "获取成语数据")
    @GetMapping("/list")
    public R<List<KgIdioms>> list() {
        return success(this.kgIdiomsService.list());
    }
}

